@extends('frontend/layouts/default')

@section('content')

<h1>Edit Account</h1>
{{ Form::model($account, array('method' => 'PATCH', 'route' => array('nd.master.account.update', $account->id))) }}

<div class="row-fluid">
<div  class="span3 control-group {{ $errors->first('id', ' error') }}">
	<label class="control-label" for="id">Id</label>
	<input class="input-block-level" placeholder="Id" title="Id" name="id" type="text" value="{{ Input::old('id', $account->id) }}">
	{{ $errors->first('id', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('domainid', ' error') }}">
	<label class="control-label" for="domainid">Domainid</label>
	<input class="input-block-level" placeholder="Domainid" title="Domainid" name="domainid" type="number" value="{{ Input::old('domainid', $account->domainid) }}">
	{{ $errors->first('domainid', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('code', ' error') }}">
	<label class="control-label" for="code">Code</label>
	<input class="input-block-level" placeholder="Code" title="Code" name="code" type="number" value="{{ Input::old('code', $account->code) }}">
	{{ $errors->first('code', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('class', ' error') }}">
	<label class="control-label" for="class">Class</label>
	<input class="input-block-level" placeholder="Class" title="Class" name="class" type="text" value="{{ Input::old('class', $account->class) }}">
	{{ $errors->first('class', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('name', ' error') }}">
	<label class="control-label" for="name">Name</label>
	<input class="input-block-level" placeholder="Name" title="Name" name="name" type="text" value="{{ Input::old('name', $account->name) }}">
	{{ $errors->first('name', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('lname', ' error') }}">
	<label class="control-label" for="lname">Lname</label>
	<input class="input-block-level" placeholder="Lname" title="Lname" name="lname" type="text" value="{{ Input::old('lname', $account->lname) }}">
	{{ $errors->first('lname', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('uname', ' error') }}">
	<label class="control-label" for="uname">Uname</label>
	<input class="input-block-level" placeholder="Uname" title="Uname" name="uname" type="text" value="{{ Input::old('uname', $account->uname) }}">
	{{ $errors->first('uname', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('ename', ' error') }}">
	<label class="control-label" for="ename">Ename</label>
	<input class="input-block-level" placeholder="Ename" title="Ename" name="ename" type="text" value="{{ Input::old('ename', $account->ename) }}">
	{{ $errors->first('ename', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('nameid', ' error') }}">
	<label class="control-label" for="nameid">Nameid</label>
	<input class="input-block-level" placeholder="Nameid" title="Nameid" name="nameid" type="text" value="{{ Input::old('nameid', $account->nameid) }}">
	{{ $errors->first('nameid', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('type', ' error') }}">
	<label class="control-label" for="type">Type</label>
	<input class="input-block-level" placeholder="Type" title="Type" name="type" type="text" value="{{ Input::old('type', $account->type) }}">
	{{ $errors->first('type', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('balance', ' error') }}">
	<label class="control-label" for="balance">Balance</label>
	<input class="input-block-level" placeholder="Balance" title="Balance" name="balance" type="text" value="{{ Input::old('balance', $account->balance) }}">
	{{ $errors->first('balance', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('abstract', ' error') }}">
	<label class="control-label" for="abstract">Abstract</label>
	<input class="input-block-level" placeholder="Abstract" title="Abstract" name="abstract" type="text" value="{{ Input::old('abstract', $account->abstract) }}">
	{{ $errors->first('abstract', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('nillable', ' error') }}">
	<label class="control-label" for="nillable">Nillable</label>
	<input class="input-block-level" placeholder="Nillable" title="Nillable" name="nillable" type="text" value="{{ Input::old('nillable', $account->nillable) }}">
	{{ $errors->first('nillable', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_parent', ' error') }}">
	<label class="control-label" for="node_parent">Node_parent</label>
	<input class="input-block-level" placeholder="Node_parent" title="Node_parent" name="node_parent" type="number" value="{{ Input::old('node_parent', $account->node_parent) }}">
	{{ $errors->first('node_parent', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_left', ' error') }}">
	<label class="control-label" for="node_left">Node_left</label>
	<input class="input-block-level" placeholder="Node_left" title="Node_left" name="node_left" type="number" value="{{ Input::old('node_left', $account->node_left) }}">
	{{ $errors->first('node_left', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_right', ' error') }}">
	<label class="control-label" for="node_right">Node_right</label>
	<input class="input-block-level" placeholder="Node_right" title="Node_right" name="node_right" type="number" value="{{ Input::old('node_right', $account->node_right) }}">
	{{ $errors->first('node_right', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_depth', ' error') }}">
	<label class="control-label" for="node_depth">Node_depth</label>
	<input class="input-block-level" placeholder="Node_depth" title="Node_depth" name="node_depth" type="number" value="{{ Input::old('node_depth', $account->node_depth) }}">
	{{ $errors->first('node_depth', '<span class="help-block">:message</span>') }}
</div>
</div>

<div>
{{ Form::submit('Update', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
{{ link_to_route('nd.master.account.show', 'Cancel', $account->id, array('class' => 'btn')) }}
</div>

{{ Form::close() }}

@stop